Apply Threshold (Image Processing)
Synopsis
Applies a fixed-level threshold to each array element. The function applies fixed-level thresholding to a multiple-channel array. The function is typically used to get a bi-level (binary) image out of a grayscale image ( #compare could be also used for this purpose) or for removing a noise, that is, filtering out pixels with too small or too large values. There are several types of thresholding supported by the function. They are determined by type parameter.Description
Input
- image
The image object the threshold is to be applied on
Output
- image
The thresholded image.
- ori
The original image.